home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / MacTools / HyperCard BBS / UserList / background_2635.txt < prev    next >
Encoding:
Text File  |  1988-05-09  |  9.9 KB  |  446 lines

  1. -- background: 2635 from stack: in
  2. -- bmap block id: 3631
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 00
  10. -- high flags: 4000
  11. -- rect: left=113 top=73 right=90 bottom=365
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 12
  17. -- style flags: 256
  18. -- line height: 16
  19. -- part name: name
  20.  
  21.  
  22. -- part 3 (field)
  23. -- low flags: 00
  24. -- high flags: 4000
  25. -- rect: left=113 top=89 right=106 bottom=365
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 0
  29. -- font id: 3
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: password
  34.  
  35.  
  36. -- part 4 (field)
  37. -- low flags: 00
  38. -- high flags: 4000
  39. -- rect: left=113 top=105 right=122 bottom=365
  40. -- title width / last selected line: 0
  41. -- icon id / first selected line: 0 / 0
  42. -- text alignment: 0
  43. -- font id: 3
  44. -- text size: 12
  45. -- style flags: 0
  46. -- line height: 16
  47. -- part name: clearance
  48.  
  49.  
  50. -- part 5 (field)
  51. -- low flags: 00
  52. -- high flags: 4000
  53. -- rect: left=113 top=121 right=138 bottom=365
  54. -- title width / last selected line: 0
  55. -- icon id / first selected line: 0 / 0
  56. -- text alignment: 0
  57. -- font id: 3
  58. -- text size: 12
  59. -- style flags: 0
  60. -- line height: 16
  61. -- part name: options
  62.  
  63.  
  64. -- part 6 (field)
  65. -- low flags: 00
  66. -- high flags: 4000
  67. -- rect: left=113 top=140 right=157 bottom=365
  68. -- title width / last selected line: 0
  69. -- icon id / first selected line: 0 / 0
  70. -- text alignment: 0
  71. -- font id: 3
  72. -- text size: 12
  73. -- style flags: 0
  74. -- line height: 16
  75. -- part name: machine
  76.  
  77.  
  78. -- part 7 (field)
  79. -- low flags: 00
  80. -- high flags: 4000
  81. -- rect: left=113 top=156 right=173 bottom=365
  82. -- title width / last selected line: 0
  83. -- icon id / first selected line: 0 / 0
  84. -- text alignment: 0
  85. -- font id: 3
  86. -- text size: 12
  87. -- style flags: 0
  88. -- line height: 16
  89. -- part name: city
  90.  
  91.  
  92. -- part 8 (field)
  93. -- low flags: 00
  94. -- high flags: 4000
  95. -- rect: left=113 top=172 right=189 bottom=365
  96. -- title width / last selected line: 0
  97. -- icon id / first selected line: 0 / 0
  98. -- text alignment: 0
  99. -- font id: 3
  100. -- text size: 12
  101. -- style flags: 0
  102. -- line height: 16
  103. -- part name: first logon
  104.  
  105.  
  106. -- part 9 (field)
  107. -- low flags: 00
  108. -- high flags: 4000
  109. -- rect: left=113 top=188 right=205 bottom=365
  110. -- title width / last selected line: 0
  111. -- icon id / first selected line: 0 / 0
  112. -- text alignment: 0
  113. -- font id: 3
  114. -- text size: 12
  115. -- style flags: 0
  116. -- line height: 16
  117. -- part name: times on
  118.  
  119.  
  120. -- part 10 (button)
  121. -- low flags: 00
  122. -- high flags: A003
  123. -- rect: left=388 top=127 right=149 bottom=487
  124. -- title width / last selected line: 0
  125. -- icon id / first selected line: 0 / 0
  126. -- text alignment: 1
  127. -- font id: 0
  128. -- text size: 12
  129. -- style flags: 0
  130. -- line height: 16
  131. -- part name: Weed Users
  132. ----- HyperTalk script -----
  133. on mouseUp
  134.   ask "Delete users who's last login was before:"
  135.   if it is empty then exit mouseUp
  136.   convert it to secs
  137.   put it into deleteSince
  138.   put the number of cards into cCount
  139.   repeat the number of cards
  140.     put "Processing card " & the number of this card & " of " & cCount
  141.     get field "last logon"
  142.     convert it to secs
  143.     if it > deleteSince then go to next card
  144.     else if the number of cards > 1 then doMenu "Delete Card"
  145.   end repeat
  146.   doMenu "Compact Stack"
  147.   showCount
  148. end mouseUp
  149.  
  150.  
  151.  
  152. -- part 11 (button)
  153. -- low flags: 00
  154. -- high flags: A003
  155. -- rect: left=388 top=102 right=124 bottom=487
  156. -- title width / last selected line: 0
  157. -- icon id / first selected line: 0 / 0
  158. -- text alignment: 1
  159. -- font id: 0
  160. -- text size: 12
  161. -- style flags: 0
  162. -- line height: 16
  163. -- part name: Delete User
  164. ----- HyperTalk script -----
  165. on mouseUp
  166.   doMenu Delete Card
  167.   showCount
  168. end mouseUp
  169.  
  170.  
  171.  
  172. -- part 12 (button)
  173. -- low flags: 00
  174. -- high flags: A003
  175. -- rect: left=388 top=177 right=199 bottom=487
  176. -- title width / last selected line: 0
  177. -- icon id / first selected line: 0 / 0
  178. -- text alignment: 1
  179. -- font id: 0
  180. -- text size: 12
  181. -- style flags: 0
  182. -- line height: 16
  183. -- part name: Find User
  184. ----- HyperTalk script -----
  185. on mouseUp
  186.   global lastFind
  187.   ask "Find who?" with lastFind
  188.   if it is not empty then
  189.     set lockScreen to true
  190.     put the ID of this card into initialID
  191.     go to next card
  192.     find word it in field "name"
  193.     if it is not "not found" then
  194.       put the ID of this card into firstID
  195.       repeat while field "name" is not it
  196.         go to next card
  197.         find word it in field "name"
  198.         if the ID of this card is firstID then
  199.           go to initialID
  200.           beep
  201.           exit repeat
  202.         end if
  203.       end repeat
  204.     end if
  205.     put it into lastFind
  206.     set lockScreen to false
  207.   end if
  208. end mouseUp
  209.  
  210.  
  211.  
  212.  
  213. -- part 13 (field)
  214. -- low flags: 00
  215. -- high flags: 4000
  216. -- rect: left=113 top=207 right=224 bottom=365
  217. -- title width / last selected line: 0
  218. -- icon id / first selected line: 0 / 0
  219. -- text alignment: 0
  220. -- font id: 3
  221. -- text size: 12
  222. -- style flags: 0
  223. -- line height: 16
  224. -- part name: last logon
  225.  
  226.  
  227. -- part 14 (field)
  228. -- low flags: 00
  229. -- high flags: 4000
  230. -- rect: left=113 top=223 right=240 bottom=365
  231. -- title width / last selected line: 0
  232. -- icon id / first selected line: 0 / 0
  233. -- text alignment: 0
  234. -- font id: 3
  235. -- text size: 12
  236. -- style flags: 0
  237. -- line height: 16
  238. -- part name: minutes on
  239.  
  240.  
  241. -- part 15 (button)
  242. -- low flags: 00
  243. -- high flags: A003
  244. -- rect: left=388 top=307 right=329 bottom=487
  245. -- title width / last selected line: 0
  246. -- icon id / first selected line: 0 / 0
  247. -- text alignment: 1
  248. -- font id: 0
  249. -- text size: 12
  250. -- style flags: 0
  251. -- line height: 16
  252. -- part name: Times on
  253. ----- HyperTalk script -----
  254. on mouseUp
  255.   sort descending numeric by field "times on"
  256. end mouseUp
  257.  
  258.  
  259.  
  260. -- part 16 (button)
  261. -- low flags: 00
  262. -- high flags: A003
  263. -- rect: left=388 top=282 right=304 bottom=487
  264. -- title width / last selected line: 0
  265. -- icon id / first selected line: 0 / 0
  266. -- text alignment: 1
  267. -- font id: 0
  268. -- text size: 12
  269. -- style flags: 0
  270. -- line height: 16
  271. -- part name: Last logon
  272. ----- HyperTalk script -----
  273. on mouseUp
  274.   sort descending dateTime by field "last logon"
  275. end mouseUp
  276.  
  277.  
  278.  
  279. -- part 17 (button)
  280. -- low flags: 00
  281. -- high flags: A003
  282. -- rect: left=388 top=257 right=279 bottom=487
  283. -- title width / last selected line: 0
  284. -- icon id / first selected line: 0 / 0
  285. -- text alignment: 1
  286. -- font id: 0
  287. -- text size: 12
  288. -- style flags: 0
  289. -- line height: 16
  290. -- part name: Name
  291. ----- HyperTalk script -----
  292. on mouseUp
  293.   sort by field "name"
  294. end mouseUp
  295.  
  296.  
  297.  
  298. -- part 18 (button)
  299. -- low flags: 00
  300. -- high flags: 0000
  301. -- rect: left=386 top=206 right=235 bottom=416
  302. -- title width / last selected line: 0
  303. -- icon id / first selected line: 9301 / 9301
  304. -- text alignment: 1
  305. -- font id: 0
  306. -- text size: 12
  307. -- style flags: 0
  308. -- line height: 16
  309. -- part name: Prev
  310. ----- HyperTalk script -----
  311. on mouseUp
  312.   visual effect wipe right
  313.   go to previous card
  314. end mouseUp
  315.  
  316.  
  317. -- part 19 (button)
  318. -- low flags: 00
  319. -- high flags: 0000
  320. -- rect: left=415 top=206 right=235 bottom=443
  321. -- title width / last selected line: 0
  322. -- icon id / first selected line: 27009 / 27009
  323. -- text alignment: 1
  324. -- font id: 0
  325. -- text size: 12
  326. -- style flags: 0
  327. -- line height: 16
  328. -- part name: Next
  329. ----- HyperTalk script -----
  330. on mouseUp
  331.   visual effect wipe left
  332.   go to next card
  333. end mouseUp
  334.  
  335.  
  336. -- part 21 (field)
  337. -- low flags: 00
  338. -- high flags: 4007
  339. -- rect: left=25 top=258 right=330 bottom=373
  340. -- title width / last selected line: 0
  341. -- icon id / first selected line: 0 / 0
  342. -- text alignment: 0
  343. -- font id: 3
  344. -- text size: 9
  345. -- style flags: 0
  346. -- line height: 12
  347. -- part name: comments
  348.  
  349.  
  350. -- part 23 (button)
  351. -- low flags: 00
  352. -- high flags: 0000
  353. -- rect: left=442 top=206 right=235 bottom=478
  354. -- title width / last selected line: 0
  355. -- icon id / first selected line: 2162 / 2162
  356. -- text alignment: 1
  357. -- font id: 0
  358. -- text size: 12
  359. -- style flags: 0
  360. -- line height: 16
  361. -- part name: Return
  362. ----- HyperTalk script -----
  363. on mouseUp
  364.   visual effect iris close
  365.   pop card
  366. end mouseUp
  367.  
  368.  
  369.  
  370. -- part 24 (button)
  371. -- low flags: 00
  372. -- high flags: A003
  373. -- rect: left=388 top=152 right=174 bottom=487
  374. -- title width / last selected line: 0
  375. -- icon id / first selected line: 0 / 0
  376. -- text alignment: 1
  377. -- font id: 0
  378. -- text size: 12
  379. -- style flags: 0
  380. -- line height: 16
  381. -- part name: Import Users
  382. ----- HyperTalk script -----
  383. on mouseUp
  384.   answer "Import records from another user list file?" with "OK" or "Cancel"
  385.   if it is not "OK" then exit mouseUp
  386.   get the long name of this stack
  387.   put it into destStack
  388.   set lockScreen to true
  389.   set lockMessages to true
  390.   go to "the user list to import"
  391.   put the long name of this stack into sourceStack
  392.   if sourceStack is it then exit mouseUp
  393.   put the number of cards into sourceSize
  394.   repeat with i = 1 to sourceSize
  395.     put "Processing record " & i & " of " & sourceSize
  396.     go to card i of sourceStack
  397.     put field "name" into theName
  398.     put field "password" into thePassword
  399.     put field "clearance" into theClearance
  400.     put field "options" into theOptions
  401.     put field "machine" into theMachine
  402.     put field "city" into theCity
  403.     put field "first logon" into theFirstOn
  404.     put field "times on" into theTimesOn
  405.     put field "last logon" into theLastOn
  406.     put field "minutes on" into theMinutesOn
  407.     put field "comments" into theComments
  408.     go to last card of destStack
  409.     doMenu "New Card"
  410.     set lockScreen to false
  411.     put theName into field "name"
  412.     put thePassword into field "password"
  413.     put theClearance into field "clearance"
  414.     put theOptions into field "options"
  415.     put theMachine into field "machine"
  416.     put theCity into field "city"
  417.     put theFirstOn into field "first logon"
  418.     put theTimesOn into field "times on"
  419.     put theLastOn into field "last logon"
  420.     put theMinutesOn into field "minutes on"
  421.     put theComments into field "comments"
  422.     set lockScreen to true
  423.   end repeat
  424.   showCount
  425. end mouseUp
  426.  
  427.  
  428.  
  429. -- part 25 (button)
  430. -- low flags: 00
  431. -- high flags: A003
  432. -- rect: left=388 top=77 right=99 bottom=487
  433. -- title width / last selected line: 0
  434. -- icon id / first selected line: 0 / 0
  435. -- text alignment: 1
  436. -- font id: 0
  437. -- text size: 12
  438. -- style flags: 0
  439. -- line height: 16
  440. -- part name: Add User
  441. ----- HyperTalk script -----
  442. on mouseUp
  443.   doMenu New Card
  444. end mouseUp
  445.  
  446.